package com.gedeshidai.shumadevelop.SetOnline;

import com.gedeshidai.shumadevelop.common.BaseResponse;
import com.gedeshidai.shumadevelop.controller.AdminController;
import com.gedeshidai.shumadevelop.controller.UserController;
import com.gedeshidai.shumadevelop.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@SpringBootTest
public class SetOnline {
    @Resource
    private UserService userService;

    @Test
    void setOffLineDemo(){
        List<Long> list=new ArrayList<>();
        list.add(1L);
        BaseResponse<Boolean> response=userService.setOffLine(list);
        System.out.println(response);
    }

    @Test
    void setOffLineDemos(){
        List<Long> list=new ArrayList<>();
        list.add(1L);
        list.add(2L);
        BaseResponse<Boolean> response=userService.setOffLine(list);
        System.out.println(response);
    }
    @Test
    void setOnLineDemo(){
        List<Long> list=new ArrayList<>();
        list.add(1L);
        BaseResponse<Boolean> response=userService.setOnLine(list);
        System.out.println(response);
    }

    @Test
    void setOnLineDemos(){
        List<Long> list=new ArrayList<>();
        list.add(1L);
        list.add(2L);
        BaseResponse<Boolean> response=userService.setOnLine(list);
        System.out.println(response);
    }

}
